<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>5.对象</title>
	</head>
	<body>
		<script type="text/javascript" >
			// let obj1 = {'a':1,'b':2}
			// let obj2 = {'a':1,'b':2}

			// console.log(obj1.a === obj2.a)

			let data = function(){
				return {a:1}
			}

			// 老王在用data
			let w = data()
			w.a = 9
			w.b = 6
			console.log(w)

			// 老李在用data
			let l = data()
			l.a = 888
			console.log(l)



		</script>
	</body>
</html>